<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>BFC</title>
    <style>
        .container {
            background-color: #f1f1f1;
        }

        .left {
            float: left;
        }

        .bfc {
            overflow: hidden;
            /* 触发元素 BFC */
        }
    </style>
</head>

<body>
    <div class="container bfc">
        <img src="https://www.baidu.com/img/flexible/logo/pc/result.png" class="left" style="margin: 10px;" />
        <p class="bfc">某一段文字……</p>
    </div>
</body>

</html>